-- GENERATED SPELL FOR [Risen Drakkari Warrior] --


function spell0_26635(pUnit, Event) --@Crush Armor,n/a--
pUnit:FullCastSpellOnTarget(33661,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26635', 30275, 1)
end

function spell1_26635(pUnit, Event) --@Ghost Strike,n/a--
pUnit:FullCastSpellOnTarget(36093,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26635', 547, 1)
end

function spell2_26635(pUnit, Event) --@Heal,Self--
pUnit:FullCastSpellOnTarget(47668,pUnit)
pUnit:RegisterEvent('Sorts_26635', 500, 1)
end

function Sorts_26635(pUnit, Event)
local choix_sorts_26635 = math.random(0, 2)
if choix_sorts_26635 == 0 then
pUnit:RegisterEvent('spell0_26635', 1, 1)
end
if choix_sorts_26635 == 1 then
pUnit:RegisterEvent('spell1_26635', 1, 1)
end
if choix_sorts_26635 == 2 then
pUnit:RegisterEvent('spell2_26635', 1, 1)
end
end

function mob26635_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26635', math.random(1500, 3000), 1)
end

function mob26635_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26635_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26635_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26635, 1, 'mob26635_Action')
RegisterUnitEvent(26635, 2, 'mob26635_Leave')
RegisterUnitEvent(26635, 3, 'mob26635_Kill')
RegisterUnitEvent(26635, 4, 'mob26635_Die')
